﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucActionList_All.ascx.cs"
    Inherits="Admin_UserControl_ucActionList_All" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="Post">
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 class="PostHeaderIcon-wrapper" style="text-align: center">
                    MPR ACTION LIST
                </h2>
                <table>
                    <tr>
                        <td colspan="2">
                            <table id="Table1" width="100%">
                                <tr>
                                    <td>
                                        <asp:Panel ID="panel" runat="server" Height="400px" ScrollBars="Auto">
                                            <asp:GridView ID="grdJobList" runat="server" AutoGenerateColumns="False" CssClass="grd"
                                                OnRowDataBound="grdJobList_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="IDJobNote">
                                                        <ItemTemplate>
                                                            <%# Eval("IDJobNote")%>
                                                            <asp:HiddenField ID="hid" runat="server" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="40px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <%--<asp:HyperLinkField DataNavigateUrlFields="JobID" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                                    DataTextField="JobID" HeaderText="Number" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="30px" />--%>
                                                    <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Admin/Customer.aspx?id={0}"
                                                        DataTextField="CustomerFullName" HeaderText="CustomerName" ItemStyle-HorizontalAlign="Center"
                                                        ItemStyle-Width="152px" />
                                                    <asp:TemplateField HeaderText="ID Job">
                                                        <ItemTemplate>
                                                            <%# Eval("JobID")%>
                                                            <asp:HiddenField ID="hidJob" runat="server" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="40px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="DateEntered">
                                                        <ItemTemplate>
                                                            <%# (Convert.ToDateTime(Eval("DateEntered")).ToString("dd/MM/yyyy"))%>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="100px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Note Type">
                                                        <ItemTemplate>
                                                            <%# Eval("NoteType")%>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="150px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Note">
                                                        <ItemTemplate>
                                                            <%# Eval("Notes")%>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="202px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="FaultDescription">
                                                        <ItemTemplate>
                                                            <%# Eval("FaultDescription") %>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="340px" HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="StatusJobNote">
                                                        <ItemTemplate>
                                                            <%# Eval("StatusJobNote")%>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="100px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Action Status">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="drStatus" runat="server" OnSelectedIndexChanged="drStatus_SelectedIndexChanged"
                                                                AutoPostBack="true">
                                                                <asp:ListItem Value="0" Text="Not finish"></asp:ListItem>
                                                                <asp:ListItem Value="1" Text="Finished"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                        <HeaderStyle />
                                                        <ItemStyle HorizontalAlign="Center" Wrap="True" Width="100px"></ItemStyle>
                                                    </asp:TemplateField>
                                                    <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                                        HeaderText="Detail" ItemStyle-HorizontalAlign="Center" Text="Detail" ItemStyle-Width="70px" />
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle CssClass="grdHeader" />
                                                <EditRowStyle BackColor="#2461BF" />
                                                <AlternatingRowStyle CssClass="grdAlternateRow" />
                                                <PagerSettings PageButtonCount="6" />
                                                <RowStyle CssClass="grdRow" />
                                            </asp:GridView>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
